﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T12
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}


namespace kkk
{
    class Program
    {
        static void Main(string[] args)
        {

            int u, v, k, m;
            u = int.Parse(Console.ReadLine());
            k = u;
            v = int.Parse(Console.ReadLine());
            m = v;
            if (u == v)
                System.Console.Write("最小公倍数为" + v);
            else if (u > v)
            {
                while (true)
                {
                    if ((u % v == 0) && (u % k == 0))
                    {
                        System.Console.WriteLine("最小公倍数为" + u);
                        break;
                    }

                    else
                        u++;
                }
            }
            else
                while (true)
                {
                    if ((v % u == 0) && (v % m == 0))
                    {
                        System.Console.WriteLine("最小公倍数为" + v);
                        break;
                    }

                    else

                        v++;
                }

        }

    }
}

